//
//  NvTimelineCaptionUtils.h
//  SDKDemo
//
//  Created by shizhouhu on 2018/7/2.
//  Copyright © 2018年 meishe. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NvsTimeline.h"
#import "NvTimelineData.h"
#import "NvsTimelineCaption.h"

@interface NvTimelineCaptionUtils : NSObject

/*
 * 添加字幕
 */
+ (NSString *)addCaption:(NvsTimeline *)timeline captionInfo:(NvCaptionInfoModel *)captionInfo;

/*
 * 更新字幕:缩放，平移，旋转
 */
+ (void)updateCaption:(NvsTimeline *)timeline captionInfo:(NvCaptionInfoModel *)captionInfo;

/*
 * 删除字幕
 */
+ (NvCaptionInfoModel *)removeCaption:(NvsTimeline *)timeline captionInfo:(NvCaptionInfoModel *)captionInfo;

/*
 * 根据live window上的点查找字幕
 */
+ (NvCaptionInfoModel *)getCaptionByPoint:(NvsTimeline *)timeline liveWindow:(NvsLiveWindow *)liveWindow point:(CGPoint)point;

/*
 * 根据字幕信息获取时间线的字幕
 */
+ (NvsTimelineCaption *)getTimelineCaption:(NvsTimeline *)timeline captionInfo:(NvCaptionInfoModel *)captionInfo;

/*
 * 获取字幕文本矩形框
 */
+ (NvsRect)getCaptionRect:(NvsTimeline *)timeline captionInfo:(NvCaptionInfoModel *)captionInfo;

/*
 * 获取字幕包围框
 */
+ (NSArray *)getCaptionBoundingPoints:(NvsTimeline *)timeline liveWindow:(NvsLiveWindow *)liveWindow captionInfo:(NvCaptionInfoModel *)captionInfo;
@end
